home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / Direct3D / StencilBuffer / StencilDepth / readme.txt < prev    next >
Encoding:
Text File  |  2001-10-10  |  2.3 KB  |  58 lines

  1. //-----------------------------------------------------------------------------
  2. // Name: StencilDepth Direct3D Sample
  3. // 
  4. // Copyright (c) 1998-2001 Microsoft Corporation. All rights reserved.
  5. //-----------------------------------------------------------------------------
  6.  
  7.  
  8. Description
  9. ===========
  10.    The StencilDepth sample uses stencil buffers to display the depth complexity
  11.    of a scene. The depth complextity of a scene is defined as the average
  12.    number of times each pixel is rendered to.
  13.    
  14.    Stencil buffers are a depth buffer technique that can be updated as
  15.    geometry is rendered, and used again as a mask for drawing more geometry.
  16.    Common effects include mirrors, shadows (an advanced technique), dissolves,
  17.    etc..
  18.  
  19.    Note that not all cards support all features for all the various stencil
  20.    buffer techniques (some hardware has no, or limited, stencil buffer
  21.    support). For more information on stencil buffers, refer to the DirectX SDK
  22.    documentation. 
  23.  
  24.  
  25. Path
  26. ====
  27.    Source:     DXSDK\Samples\Multimedia\D3D\StencilBuffer\StencilDepth
  28.    Executable: DXSDK\Samples\Multimedia\D3D\Bin
  29.  
  30.  
  31. User's Guide
  32. ============
  33.    The following keys are implemented. The dropdown menus can be used for the
  34.    same controls.
  35.       <Enter>     Starts and stops the scene
  36.       <Space>     Advances the scene by a small increment
  37.       <F1>        Shows help or available commands.
  38.       <F2>        Prompts user to select a new rendering device or display mode
  39.       <Alt+Enter> Toggles between fullscreen and windowed modes
  40.       <Esc>       Exits the app.
  41.  
  42.  
  43. Programming Notes
  44. =================
  45.    Displaying depth complexity is a valuable tool to analyze the performance of
  46.    a scene. Scenes with high amounts of overdraw could benefit from some scene
  47.    optimization, such as sorting the geometry in a front-to-back order.
  48.  
  49.    Note that not all cards support all features for all the various stencil
  50.    buffer techniques (some hardware has no, or limited, stencil buffer
  51.    support). For more information on stencil buffers, refer to the DirectX SDK
  52.    documentation. 
  53.  
  54.    This sample makes use of common DirectX code (consisting of helper functions,
  55.    etc.) that is shared with other samples on the DirectX SDK. All common
  56.    headers and source code can be found in the following directory:
  57.       DXSDK\Samples\Multimedia\Common
  58.